#ifndef IMGUILAYER_H
#define IMGUILAYER_H

#include "layer.h"

#include "ApplicationEvent.h"
#include "KeyEvent.h"
#include "MouseEvent.h"
#include "imgui.h"
namespace HS {

	class ImGuiLayer : public Layer
	{
	public:
		ImGuiLayer();
		~ImGuiLayer() = default;

		virtual void OnAttach() override;
		virtual void OnDetach() override;
		virtual void OnImGuiRender()override;
		void Begin();
		void End();
		void BlockEvents(bool block) { m_BlockEvents = block; }
		virtual void OnEvent(Event& event);
	private:
		void SetDarkThemeColors();
		void SetLightGreenColors(ImGuiStyle* dst);
	private:
		bool m_BlockEvents = true;
		float m_Time = 0.0f;
	};

}

#endif // !IMGUILAYER_H